<template>
	<view class="page" :style="{'--color':color}">
		<!-- #ifdef MP-WEIXIN -->
		<navBar :bgMake="5" :Color="2" title="提现说明"></navBar>
		<!-- #endif -->
		<view class="inviteRule" v-if='withdrawal_rules'>
			<view class="content">
				<view class="list_sing" v-for="(r,i) in withdrawal_rules" :key='i'>
					<text style="font-size: 40upx;">{{i+1}}、</text>
					{{r}}
				</view>
			</view>
		</view>
		<emptys v-else title="暂无相关信息~"></emptys>
		<!-- <view @click="returnBtn" class="btn">
			<view class="return thmeBorder thmeColor" :style="{'--color': color}">
				返回
			</view>
		</view> -->
	</view>
</template>

<script>
	import { mapState } from 'vuex';
	export default {
		data() {
			return {}
		},
		onShow() {

			if (this.withdrawal_rules) {
				this.withdrawal_rules = this.withdrawal_rules.split('\n')
			}

		},
		computed: {
			...mapState(['color', 'withdrawal_rules']),
		},
		methods: {
			returnBtn() {
				uni.navigateBack({
					delta: 1
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.page {
		min-height: 100vh;
		background-color: #F8F8F8;
	}

	.inviteRule {
		background-color: #FFFFFF;
	}

	.empty {
		color: red;
	}

	.title {
		width: 100%;
		height: 100upx;
		display: flex;
		justify-content: center;
		align-items: center;
		font-weight: bold;
		border-bottom: 1px solid #F2F2F2;
		color: #121212;
	}

	.content {
		padding: 0 20upx;
	}

	.content view {
		height: 100upx;
		display: flex;
		align-items: center;
		color: #AFAFAF;
	}

	.list_sing {
		border-bottom: 1px solid #F2F2F2;

		&:nth-last-of-type(1) {
			border: none;
		}
	}

	.btn {
		margin-top: 100upx;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.return {
		width: 350upx;
		height: 72upx;
		border-radius: 5px;
		text-align: center;
		line-height: 72upx;
		font-size: 30upx;
	}
</style>